import Vue from "vue";
import './plugins/axios'
import App from "./App.vue";
import './plugins/element.js'
import "./assets/style.scss";
import router from './router'

Vue.config.productionTip = false;


Vue.mixin({
  computed:{
    uploadUrl(){
      return this.$http.defaults.baseURL+'/upload'
    }
  },

  methods:{
    getAuthHeaders(){
      return{
        Authorization:`Bearer ${localStorage.token || ''}`
      }
    }
  }
})

new Vue({
  router,
  render: (h) => h(App)
}).$mount("#app");
